
function increment( count ){
    console.log( 'before count++ : ' , count );
    count++;
    console.log( 'after count++ : ' , count );
}

let count = 1000;

console.log( 'before increment: ' , count ); // 1000
increment( count );
console.log( 'after increment: ' , count ); // 1000

console.log( '- '.repeat( 20 ) );

function myWrapper( exports , module ) {
    // 修改参数 exports 的值
    exports = { id: 250 , name: '川普' }
    console.log( exports );
    // 修改 module 对象的 exports 属性的值
    // module.exports = { id: 250 , name: '川建国' }
    console.log( module.exports );
}

const myModule = {
    exports: {
    }
}

myWrapper( myModule.exports , myModule );

console.log( myModule );